<template>
  <div class="bucket-container">
    <div class="bucket-navbar-container">
      <el-menu class="bucket-menu" :router="true" :default-active="index">
        <el-menu-item-group>
          <template slot="title">基本设置</template>
<!--          <el-menu-item index="/manufacture/equipment">-->
<!--            <i class="el-icon-cpu" />-->
<!--            <span slot="title">仪器设备</span>-->
<!--          </el-menu-item>-->
<!--          <el-menu-item index="/manufacture/material">-->
<!--            <i class="el-icon-box" />-->
<!--            <span slot="title">物料管理</span>-->
<!--          </el-menu-item>-->
          <el-menu-item index="/manufacture/product">
            <i class="el-icon-goods" />
            <span slot="title">产品项目</span>
          </el-menu-item>
          <el-menu-item index="/manufacture/technique">
            <i class="el-icon-magic-stick" />
            <span slot="title">生产工艺</span>
          </el-menu-item>
          <el-menu-item index="/manufacture/data_template_list">
            <i class="el-icon-set-up" />
            <span slot="title">记录表格</span>
          </el-menu-item>
        </el-menu-item-group>
        <el-menu-item-group>
          <template slot="title">记录管理</template>
          <el-menu-item index="/manufacture/manufacture_list_apply">
            <i class="el-icon-bottom-right" />
            <span slot="title">生产指令</span>
          </el-menu-item>
          <!-- <el-menu-item index="/manufacture/manufacture_list_todo">
            <i class="el-icon-edit-outline" />
            <span slot="title"><el-badge :value="3">待办事项</el-badge></span>
          </el-menu-item> -->
          <el-menu-item index="/manufacture/manufacture_list_record">
            <i class="el-icon-tickets" />
            <span slot="title">我的记录</span>
          </el-menu-item>
          <el-menu-item index="/manufacture/manufacture_list_archive">
            <i class="el-icon-files" />
            <span slot="title">批生产记录</span>
          </el-menu-item>
<!--          <el-menu-item index="/manufacture/manufacture_stat">-->
<!--            <i class="el-icon-pie-chart" />-->
<!--            <span slot="title">统计分析</span>-->
<!--          </el-menu-item>-->
        </el-menu-item-group>
      </el-menu>
    </div>
    <div class="bucket-main-container">
      <router-view />
    </div>
  </div>
</template>


<script>
import { pageReleased } from '@/api/rs/manufacture.js'
export default {
  data() {
    return {
      index: '/manufacture/manufacture_list_todo',
      listQuery: {
        pageNumber: 1,
        pageIndex: 0,
        pageSize: 10
      }
    }
  },
  mounted() {
    this.index = this.$router.history.current.path
    // 保留
    pageReleased(this.listQuery).then((res) => {})
  },
  methods: {}
}
</script>


<style lang="scss" scoped>
.bucket-menu {
  .el-menu-item {
    .el-badge {
      height: 24px;
      line-height: 24px;
    }
  }
}
</style>
